<?php 

require 'i_global.php';
require 'func_reg_auth.php';

$errorString = user_register();
if($errorString == NULL) { // success
	header("Location: ${$URL_ROOT}user_dashboard.php");
} else {
	header("Location: ${$URL_ROOT}reg_form.php?mesg=$errorString");
}
?>